#include "rmp.h"
#include "lcd.h"
#include "ltdc.h"
#include "sdram.h"

/* 12-8-8-8-12 layout */
#define XPOS_0  12
#define XPOS_1  12+56+8
#define XPOS_2  12+56+8+56+8
#define XPOS_3  12+56+8+56+8+56+8

#define YPOS_0  412-56-8-56-8-56-8
#define YPOS_1  412-56-8-56-8
#define YPOS_2  412-56-8
#define YPOS_3  412

#define YPOS_DISP YPOS_0-56*3-12

#define RGB565(R,G,B) ((((R)>>3)<<11)|(((G)>>2)<<5)|((B)>>3))
#define KEYS_BG       RGB565(51,55,56)
#define DISP_BG       RGB565(23,23,23)
#define NUM_FR        RGB565(65,227,192)
#define OP_FR         RGB565(255,244,75)

struct RMP_Thd Thd_1;
struct RMP_Thd Thd_2;
rmp_ptr_t Stack_1[256];
rmp_ptr_t Stack_2[256];

void RMP_Point(rmp_cnt_t Point_X, rmp_cnt_t Point_Y, rmp_ptr_t Color)
{
    if((Point_X>=0)&&(Point_X<272)&&(Point_Y>=0)&&(Point_Y<480))
        LTDC_Draw_Point(Point_X,Point_Y,Color);
}

void MPU_Init(void)
{
    /* Enable MPU access to all the code section, and the peripheral section */
    MPU_Region_InitTypeDef MPU_Initure;
    HAL_MPU_Disable();

    /* The STM32 peripheral/SDRAM section - directly expose to peripherals */
    MPU_Initure.Enable=MPU_REGION_ENABLE;               //Enable this area
    MPU_Initure.Number=MPU_REGION_NUMBER6;               //Set the protection area
    MPU_Initure.BaseAddress=(u32)0x00000000;               //Set the base address
    MPU_Initure.Size=MPU_REGION_SIZE_4GB;               //Set the protection area size
    MPU_Initure.SubRegionDisable=0X03;                         //We disable the first 2 subregions now
    MPU_Initure.TypeExtField=MPU_TEX_LEVEL0;                   //Type expansion area:level0
    MPU_Initure.AccessPermission=(rmp_u8_t)MPU_REGION_FULL_ACCESS; //Set the access permissions
    MPU_Initure.DisableExec=MPU_INSTRUCTION_ACCESS_ENABLE;       //Executable
    MPU_Initure.IsShareable=MPU_ACCESS_NOT_SHAREABLE;          //Not sharable
    MPU_Initure.IsCacheable=MPU_ACCESS_NOT_CACHEABLE;          //Not cacheable
    MPU_Initure.IsBufferable=MPU_ACCESS_NOT_BUFFERABLE;        //Not bufferable
    HAL_MPU_ConfigRegion(&MPU_Initure);                        //Initialize the MPU

    HAL_MPU_Enable(MPU_PRIVILEGED_DEFAULT);
}

const rmp_u8_t Num_0[]=
{
0x00,0x00,0x01,0xff,0x80,0x00,0x00
,0x00,0x00,0x1f,0xff,0xf8,0x00,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x0f,0xff,0x00,0xff,0xf0,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xe0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x1f,0x00,0x00,0x7e,0x00,0x00,0xf8
,0x3f,0x00,0x01,0xff,0x80,0x00,0xfc
,0x3e,0x00,0x03,0xff,0xc0,0x00,0x7c
,0x7e,0x00,0x07,0xff,0xe0,0x00,0x7e
,0x7c,0x00,0x07,0xe7,0xe0,0x00,0x3e
,0x7c,0x00,0x0f,0xc3,0xf0,0x00,0x3e
,0x7c,0x00,0x0f,0x81,0xf0,0x00,0x3e
,0xfc,0x00,0x0f,0x81,0xf0,0x00,0x3f
,0xf8,0x00,0x0f,0x81,0xf0,0x00,0x1f
,0xf8,0x00,0x0f,0x00,0xf0,0x00,0x1f
,0xf8,0x00,0x1f,0x00,0xf8,0x00,0x1f
,0xf8,0x00,0x1f,0x00,0xf8,0x00,0x1f
,0xf8,0x00,0x1f,0x00,0xf8,0x00,0x1f
,0xf8,0x00,0x1f,0x00,0xf8,0x00,0x1f
,0xf8,0x00,0x0f,0x00,0xf0,0x00,0x1f
,0xf8,0x00,0x0f,0x81,0xf0,0x00,0x1f
,0xfc,0x00,0x0f,0x81,0xf0,0x00,0x3f
,0x7c,0x00,0x0f,0x81,0xf0,0x00,0x3e
,0x7c,0x00,0x0f,0xc3,0xf0,0x00,0x3e
,0x7c,0x00,0x07,0xe7,0xe0,0x00,0x3e
,0x7e,0x00,0x07,0xff,0xe0,0x00,0x7e
,0x3e,0x00,0x03,0xff,0xc0,0x00,0x7c
,0x3f,0x00,0x01,0xff,0x80,0x00,0xfc
,0x1f,0x00,0x00,0x7e,0x00,0x00,0xf8
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x07,0xf0,0x00,0x00,0x00,0x0f,0xe0
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x1f,0xff,0x00,0xff,0xf8,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x00,0x1f,0xff,0xf8,0x00,0x00
,0x00,0x00,0x01,0xff,0x80,0x00,0x00
};

const rmp_u8_t Num_1[]=
{
0x00,0x00,0x01,0xff,0x80,0x00,0x00
,0x00,0x00,0x1f,0xff,0xf8,0x00,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x0f,0xff,0x00,0xff,0xf0,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xe0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x1f,0x00,0x00,0xfe,0x00,0x00,0xf8
,0x3f,0x00,0x01,0xfe,0x00,0x00,0xfc
,0x3e,0x00,0x01,0xfe,0x00,0x00,0x7c
,0x7e,0x00,0x01,0xfe,0x00,0x00,0x7e
,0x7c,0x00,0x00,0xfe,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x3e,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x3e,0x00,0x00,0x3e
,0xfc,0x00,0x00,0x3e,0x00,0x00,0x3f
,0xf8,0x00,0x00,0x3e,0x00,0x00,0x1f
,0xf8,0x00,0x00,0x3e,0x00,0x00,0x1f
,0xf8,0x00,0x00,0x3e,0x00,0x00,0x1f
,0xf8,0x00,0x00,0x3e,0x00,0x00,0x1f
,0xf8,0x00,0x00,0x3e,0x00,0x00,0x1f
,0xf8,0x00,0x00,0x3e,0x00,0x00,0x1f
,0xf8,0x00,0x00,0x3e,0x00,0x00,0x1f
,0xf8,0x00,0x00,0x3e,0x00,0x00,0x1f
,0xfc,0x00,0x00,0x3e,0x00,0x00,0x3f
,0x7c,0x00,0x00,0x3e,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x3e,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x3e,0x00,0x00,0x3e
,0x7e,0x00,0x00,0x3e,0x00,0x00,0x7e
,0x3e,0x00,0x00,0x3e,0x00,0x00,0x7c
,0x3f,0x00,0x00,0x1e,0x00,0x00,0xfc
,0x1f,0x00,0x00,0x1e,0x00,0x00,0xf8
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x07,0xf0,0x00,0x00,0x00,0x0f,0xe0
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x1f,0xff,0x00,0xff,0xf8,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x00,0x1f,0xff,0xf8,0x00,0x00
,0x00,0x00,0x01,0xff,0x80,0x00,0x00

};

const rmp_u8_t Num_2[]=
{
0x00,0x00,0x01,0xff,0x80,0x00,0x00
,0x00,0x00,0x1f,0xff,0xf8,0x00,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x0f,0xff,0x00,0xff,0xf0,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xe0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x1f,0x00,0x00,0x7e,0x00,0x00,0xf8
,0x3f,0x00,0x01,0xff,0x80,0x00,0xfc
,0x3e,0x00,0x03,0xff,0xc0,0x00,0x7c
,0x7e,0x00,0x07,0xff,0xe0,0x00,0x7e
,0x7c,0x00,0x0f,0xe7,0xe0,0x00,0x3e
,0x7c,0x00,0x0f,0x83,0xe0,0x00,0x3e
,0x7c,0x00,0x0f,0x83,0xf0,0x00,0x3e
,0xfc,0x00,0x0f,0x03,0xe0,0x00,0x3f
,0xf8,0x00,0x0f,0x03,0xe0,0x00,0x1f
,0xf8,0x00,0x06,0x03,0xe0,0x00,0x1f
,0xf8,0x00,0x00,0x07,0xe0,0x00,0x1f
,0xf8,0x00,0x00,0x0f,0xc0,0x00,0x1f
,0xf8,0x00,0x00,0x1f,0x80,0x00,0x1f
,0xf8,0x00,0x00,0x3f,0x80,0x00,0x1f
,0xf8,0x00,0x00,0x3f,0x00,0x00,0x1f
,0xf8,0x00,0x00,0x7e,0x00,0x00,0x1f
,0xfc,0x00,0x00,0xfc,0x00,0x00,0x3f
,0x7c,0x00,0x01,0xf8,0x00,0x00,0x3e
,0x7c,0x00,0x03,0xf0,0x00,0x00,0x3e
,0x7c,0x00,0x07,0xff,0xe0,0x00,0x3e
,0x7e,0x00,0x0f,0xff,0xf0,0x00,0x7e
,0x3e,0x00,0x1f,0xff,0xf8,0x00,0x7c
,0x3f,0x00,0x1f,0xff,0xf0,0x00,0xfc
,0x1f,0x00,0x0f,0xff,0xf0,0x00,0xf8
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x07,0xf0,0x00,0x00,0x00,0x0f,0xe0
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x1f,0xff,0x00,0xff,0xf8,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x00,0x1f,0xff,0xf8,0x00,0x00
,0x00,0x00,0x01,0xff,0x80,0x00,0x00

};

const rmp_u8_t Num_3[]=
{
0x00,0x00,0x01,0xff,0x80,0x00,0x00
,0x00,0x00,0x1f,0xff,0xf8,0x00,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x0f,0xff,0x00,0xff,0xf0,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xc0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x1f,0x00,0x00,0x3f,0x00,0x00,0xf8
,0x3f,0x00,0x00,0xff,0x80,0x00,0xfc
,0x3e,0x00,0x01,0xff,0xc0,0x00,0x7c
,0x7e,0x00,0x03,0xff,0xe0,0x00,0x7e
,0x7c,0x00,0x03,0xe3,0xe0,0x00,0x3e
,0x7c,0x00,0x03,0xc1,0xe0,0x00,0x3e
,0x7c,0x00,0x03,0x81,0xe0,0x00,0x3e
,0xfc,0x00,0x00,0x01,0xe0,0x00,0x3f
,0xf8,0x00,0x00,0x03,0xe0,0x00,0x1f
,0xf8,0x00,0x00,0x0f,0xc0,0x00,0x1f
,0xf8,0x00,0x00,0x1f,0x80,0x00,0x1f
,0xf8,0x00,0x00,0x3f,0xc0,0x00,0x1f
,0xf8,0x00,0x00,0x1f,0xe0,0x00,0x1f
,0xf8,0x00,0x00,0x0f,0xf0,0x00,0x1f
,0xf8,0x00,0x00,0x01,0xf0,0x00,0x1f
,0xf8,0x00,0x00,0x00,0xf0,0x00,0x1f
,0xfc,0x00,0x03,0x80,0xf8,0x00,0x3f
,0x7c,0x00,0x07,0x80,0xf8,0x00,0x3e
,0x7c,0x00,0x07,0xc1,0xf0,0x00,0x3e
,0x7c,0x00,0x07,0xe3,0xf0,0x00,0x3e
,0x7e,0x00,0x03,0xff,0xf0,0x00,0x7e
,0x3e,0x00,0x01,0xff,0xe0,0x00,0x7c
,0x3f,0x00,0x00,0xff,0xc0,0x00,0xfc
,0x1f,0x00,0x00,0x7f,0x00,0x00,0xf8
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xc0
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x1f,0xff,0x00,0xff,0xf8,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x00,0x1f,0xff,0xf8,0x00,0x00
,0x00,0x00,0x01,0xff,0x80,0x00,0x00

};

const rmp_u8_t Num_4[]=
{
0x00,0x00,0x01,0xff,0x80,0x00,0x00
,0x00,0x00,0x1f,0xff,0xf8,0x00,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x0f,0xff,0x00,0xff,0xf0,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xc0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x1f,0x00,0x00,0x1f,0x00,0x00,0xf8
,0x3f,0x00,0x00,0x3f,0x80,0x00,0xfc
,0x3e,0x00,0x00,0x3f,0x80,0x00,0x7c
,0x7e,0x00,0x00,0x7f,0x80,0x00,0x7e
,0x7c,0x00,0x00,0xff,0x80,0x00,0x3e
,0x7c,0x00,0x00,0xff,0x80,0x00,0x3e
,0x7c,0x00,0x01,0xf7,0x80,0x00,0x3e
,0xfc,0x00,0x01,0xe7,0x80,0x00,0x3f
,0xf8,0x00,0x03,0xe7,0x80,0x00,0x1f
,0xf8,0x00,0x03,0xc7,0x80,0x00,0x1f
,0xf8,0x00,0x07,0xc7,0x80,0x00,0x1f
,0xf8,0x00,0x0f,0x87,0x80,0x00,0x1f
,0xf8,0x00,0x0f,0x87,0x80,0x00,0x1f
,0xf8,0x00,0x1f,0x07,0x80,0x00,0x1f
,0xf8,0x00,0x1f,0xff,0xc0,0x00,0x1f
,0xf8,0x00,0x3f,0xff,0xf0,0x00,0x1f
,0xfc,0x00,0x3f,0xff,0xf8,0x00,0x3f
,0x7c,0x00,0x3f,0xff,0xf0,0x00,0x3e
,0x7c,0x00,0x1f,0xff,0xe0,0x00,0x3e
,0x7c,0x00,0x00,0x07,0x80,0x00,0x3e
,0x7e,0x00,0x00,0x07,0x80,0x00,0x7e
,0x3e,0x00,0x00,0x07,0x80,0x00,0x7c
,0x3f,0x00,0x00,0x07,0x80,0x00,0xfc
,0x1f,0x00,0x00,0x07,0x80,0x00,0xf8
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xc0
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x1f,0xff,0x00,0xff,0xf8,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x00,0x1f,0xff,0xf8,0x00,0x00
,0x00,0x00,0x01,0xff,0x80,0x00,0x00

};

const rmp_u8_t Num_5[]=
{
0x00,0x00,0x01,0xff,0x80,0x00,0x00
,0x00,0x00,0x1f,0xff,0xf8,0x00,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x0f,0xff,0x00,0xff,0xf0,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xc0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x1f,0x00,0x01,0xff,0xf0,0x00,0xf8
,0x3f,0x00,0x01,0xff,0xf0,0x00,0xfc
,0x3e,0x00,0x03,0xff,0xf0,0x00,0x7c
,0x7e,0x00,0x03,0xff,0xf0,0x00,0x7e
,0x7c,0x00,0x03,0xe0,0x00,0x00,0x3e
,0x7c,0x00,0x03,0xe0,0x00,0x00,0x3e
,0x7c,0x00,0x03,0xe0,0x00,0x00,0x3e
,0xfc,0x00,0x03,0xe0,0x00,0x00,0x3f
,0xf8,0x00,0x03,0xff,0x80,0x00,0x1f
,0xf8,0x00,0x03,0xff,0xc0,0x00,0x1f
,0xf8,0x00,0x07,0xff,0xe0,0x00,0x1f
,0xf8,0x00,0x07,0xff,0xf0,0x00,0x1f
,0xf8,0x00,0x03,0x83,0xf0,0x00,0x1f
,0xf8,0x00,0x00,0x01,0xf8,0x00,0x1f
,0xf8,0x00,0x00,0x01,0xf8,0x00,0x1f
,0xf8,0x00,0x00,0x01,0xf8,0x00,0x1f
,0xfc,0x00,0x00,0x01,0xf8,0x00,0x3f
,0x7c,0x00,0x00,0x01,0xf0,0x00,0x3e
,0x7c,0x00,0x0f,0x03,0xf0,0x00,0x3e
,0x7c,0x00,0x1f,0xcf,0xf0,0x00,0x3e
,0x7e,0x00,0x0f,0xff,0xe0,0x00,0x7e
,0x3e,0x00,0x0f,0xff,0xc0,0x00,0x7c
,0x3f,0x00,0x07,0xff,0x80,0x00,0xfc
,0x1f,0x00,0x00,0xfe,0x00,0x00,0xf8
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xc0
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x1f,0xff,0x00,0xff,0xf8,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x00,0x1f,0xff,0xf8,0x00,0x00
,0x00,0x00,0x01,0xff,0x80,0x00,0x00

};

const rmp_u8_t Num_6[]=
{
0x00,0x00,0x01,0xff,0x80,0x00,0x00
,0x00,0x00,0x1f,0xff,0xf8,0x00,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x0f,0xff,0x00,0xff,0xf0,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xc0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x1f,0x00,0x00,0x07,0x00,0x00,0xf8
,0x3f,0x00,0x00,0x0f,0x00,0x00,0xfc
,0x3e,0x00,0x00,0x1f,0x80,0x00,0x7c
,0x7e,0x00,0x00,0x3f,0x00,0x00,0x7e
,0x7c,0x00,0x00,0x7e,0x00,0x00,0x3e
,0x7c,0x00,0x00,0xfc,0x00,0x00,0x3e
,0x7c,0x00,0x01,0xf8,0x00,0x00,0x3e
,0xfc,0x00,0x01,0xf0,0x00,0x00,0x3f
,0xf8,0x00,0x03,0xf0,0x00,0x00,0x1f
,0xf8,0x00,0x07,0xff,0x80,0x00,0x1f
,0xf8,0x00,0x07,0xff,0xc0,0x00,0x1f
,0xf8,0x00,0x0f,0xff,0xe0,0x00,0x1f
,0xf8,0x00,0x0f,0xe7,0xf0,0x00,0x1f
,0xf8,0x00,0x0f,0xc3,0xf0,0x00,0x1f
,0xf8,0x00,0x0f,0x81,0xf0,0x00,0x1f
,0xf8,0x00,0x1f,0x81,0xf8,0x00,0x1f
,0xfc,0x00,0x1f,0x81,0xf8,0x00,0x3f
,0x7c,0x00,0x0f,0x81,0xf0,0x00,0x3e
,0x7c,0x00,0x0f,0xc3,0xf0,0x00,0x3e
,0x7c,0x00,0x0f,0xe7,0xf0,0x00,0x3e
,0x7e,0x00,0x07,0xff,0xe0,0x00,0x7e
,0x3e,0x00,0x07,0xff,0xc0,0x00,0x7c
,0x3f,0x00,0x01,0xff,0x80,0x00,0xfc
,0x1f,0x00,0x00,0xfe,0x00,0x00,0xf8
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xc0
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x1f,0xff,0x00,0xff,0xf8,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x00,0x1f,0xff,0xf8,0x00,0x00
,0x00,0x00,0x01,0xff,0x80,0x00,0x00

};

const rmp_u8_t Num_7[]=
{
0x00,0x00,0x01,0xff,0x80,0x00,0x00
,0x00,0x00,0x1f,0xff,0xf8,0x00,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x0f,0xff,0x00,0xff,0xf0,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xc0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x1f,0x00,0x0f,0xff,0xf0,0x00,0xf8
,0x3f,0x00,0x1f,0xff,0xf0,0x00,0xfc
,0x3e,0x00,0x1f,0xff,0xf8,0x00,0x7c
,0x7e,0x00,0x0f,0xff,0xf0,0x00,0x7e
,0x7c,0x00,0x00,0x03,0xf0,0x00,0x3e
,0x7c,0x00,0x00,0x03,0xe0,0x00,0x3e
,0x7c,0x00,0x00,0x03,0xe0,0x00,0x3e
,0xfc,0x00,0x00,0x07,0xc0,0x00,0x3f
,0xf8,0x00,0x00,0x07,0xc0,0x00,0x1f
,0xf8,0x00,0x00,0x0f,0x80,0x00,0x1f
,0xf8,0x00,0x00,0x0f,0x80,0x00,0x1f
,0xf8,0x00,0x00,0x1f,0x00,0x00,0x1f
,0xf8,0x00,0x00,0x3f,0x00,0x00,0x1f
,0xf8,0x00,0x00,0x3e,0x00,0x00,0x1f
,0xf8,0x00,0x00,0x7e,0x00,0x00,0x1f
,0xf8,0x00,0x00,0x7c,0x00,0x00,0x1f
,0xfc,0x00,0x00,0xfc,0x00,0x00,0x3f
,0x7c,0x00,0x00,0xf8,0x00,0x00,0x3e
,0x7c,0x00,0x01,0xf8,0x00,0x00,0x3e
,0x7c,0x00,0x01,0xf0,0x00,0x00,0x3e
,0x7e,0x00,0x03,0xf0,0x00,0x00,0x7e
,0x3e,0x00,0x03,0xe0,0x00,0x00,0x7c
,0x3f,0x00,0x03,0xe0,0x00,0x00,0xfc
,0x1f,0x00,0x01,0xc0,0x00,0x00,0xf8
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xc0
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x1f,0xff,0x00,0xff,0xf8,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x00,0x1f,0xff,0xf8,0x00,0x00
,0x00,0x00,0x01,0xff,0x80,0x00,0x00

};

const rmp_u8_t Num_8[]=
{
0x00,0x00,0x01,0xff,0x80,0x00,0x00
,0x00,0x00,0x1f,0xff,0xf8,0x00,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x0f,0xff,0x00,0xff,0xf0,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xe0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x1f,0x00,0x00,0x7e,0x00,0x00,0xf8
,0x3f,0x00,0x01,0xff,0x80,0x00,0xfc
,0x3e,0x00,0x03,0xff,0xc0,0x00,0x7c
,0x7e,0x00,0x07,0xff,0xe0,0x00,0x7e
,0x7c,0x00,0x07,0xc3,0xe0,0x00,0x3e
,0x7c,0x00,0x07,0xc3,0xf0,0x00,0x3e
,0x7c,0x00,0x07,0x81,0xf0,0x00,0x3e
,0xfc,0x00,0x07,0x81,0xe0,0x00,0x3f
,0xf8,0x00,0x07,0xc3,0xe0,0x00,0x1f
,0xf8,0x00,0x03,0xff,0xc0,0x00,0x1f
,0xf8,0x00,0x01,0xff,0x80,0x00,0x1f
,0xf8,0x00,0x03,0xff,0xc0,0x00,0x1f
,0xf8,0x00,0x07,0xff,0xe0,0x00,0x1f
,0xf8,0x00,0x0f,0xc3,0xf0,0x00,0x1f
,0xf8,0x00,0x0f,0x81,0xf0,0x00,0x1f
,0xf8,0x00,0x0f,0x81,0xf0,0x00,0x1f
,0xfc,0x00,0x1f,0x81,0xf8,0x00,0x3f
,0x7c,0x00,0x1f,0x81,0xf8,0x00,0x3e
,0x7c,0x00,0x0f,0x81,0xf0,0x00,0x3e
,0x7c,0x00,0x0f,0xe7,0xf0,0x00,0x3e
,0x7e,0x00,0x07,0xff,0xf0,0x00,0x7e
,0x3e,0x00,0x07,0xff,0xe0,0x00,0x7c
,0x3f,0x00,0x03,0xff,0xc0,0x00,0xfc
,0x1f,0x00,0x00,0xff,0x00,0x00,0xf8
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xe0
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x1f,0xff,0x00,0xff,0xf8,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x00,0x1f,0xff,0xf8,0x00,0x00
,0x00,0x00,0x01,0xff,0x80,0x00,0x00

};

const rmp_u8_t Num_9[]=
{
0x00,0x00,0x01,0xff,0x80,0x00,0x00
,0x00,0x00,0x1f,0xff,0xf8,0x00,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x0f,0xff,0x00,0xff,0xf0,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xe0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x1f,0x00,0x00,0x7e,0x00,0x00,0xf8
,0x3f,0x00,0x01,0xff,0x80,0x00,0xfc
,0x3e,0x00,0x03,0xff,0xc0,0x00,0x7c
,0x7e,0x00,0x07,0xff,0xe0,0x00,0x7e
,0x7c,0x00,0x0f,0xff,0xf0,0x00,0x3e
,0x7c,0x00,0x0f,0xc3,0xf0,0x00,0x3e
,0x7c,0x00,0x0f,0x81,0xf0,0x00,0x3e
,0xfc,0x00,0x1f,0x81,0xf8,0x00,0x3f
,0xf8,0x00,0x1f,0x81,0xf8,0x00,0x1f
,0xf8,0x00,0x0f,0x81,0xf0,0x00,0x1f
,0xf8,0x00,0x0f,0xc3,0xf0,0x00,0x1f
,0xf8,0x00,0x0f,0xe7,0xf0,0x00,0x1f
,0xf8,0x00,0x07,0xff,0xf0,0x00,0x1f
,0xf8,0x00,0x03,0xff,0xe0,0x00,0x1f
,0xf8,0x00,0x01,0xff,0xe0,0x00,0x1f
,0xf8,0x00,0x00,0x0f,0xc0,0x00,0x1f
,0xfc,0x00,0x00,0x0f,0x80,0x00,0x3f
,0x7c,0x00,0x00,0x1f,0x80,0x00,0x3e
,0x7c,0x00,0x00,0x3f,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x7e,0x00,0x00,0x3e
,0x7e,0x00,0x00,0xfc,0x00,0x00,0x7e
,0x3e,0x00,0x01,0xf8,0x00,0x00,0x7c
,0x3f,0x00,0x00,0xf8,0x00,0x00,0xfc
,0x1f,0x00,0x00,0xe0,0x00,0x00,0xf8
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x07,0xf0,0x00,0x00,0x00,0x0f,0xe0
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x1f,0xff,0x00,0xff,0xf8,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x00,0x1f,0xff,0xf8,0x00,0x00
,0x00,0x00,0x01,0xff,0x80,0x00,0x00

};

const rmp_u8_t Num_Dot[]=
{
0x00,0x00,0x00,0xff,0x00,0x00,0x00
,0x00,0x00,0x0f,0xff,0xf0,0x00,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x0f,0xfe,0x00,0x7f,0xf0,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x01,0xfc,0x00,0x00,0x00,0x3f,0x80
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xc0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0x80,0x00,0x00,0x00,0x01,0xf0
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x1f,0x00,0x00,0x00,0x00,0x00,0xf8
,0x3f,0x00,0x00,0x00,0x00,0x00,0xfc
,0x3e,0x00,0x00,0x00,0x00,0x00,0x7c
,0x3e,0x00,0x00,0x00,0x00,0x00,0x7c
,0x7c,0x00,0x00,0xff,0x00,0x00,0x3e
,0x7c,0x00,0x03,0xff,0xc0,0x00,0x3e
,0x7c,0x00,0x07,0xff,0xe0,0x00,0x3e
,0x78,0x00,0x07,0xff,0xe0,0x00,0x1e
,0xf8,0x00,0x0f,0xff,0xf0,0x00,0x1f
,0xf8,0x00,0x0f,0xff,0xf0,0x00,0x1f
,0xf8,0x00,0x0f,0xff,0xf0,0x00,0x1f
,0xf8,0x00,0x0f,0xff,0xf0,0x00,0x1f
,0xf8,0x00,0x0f,0xff,0xf0,0x00,0x1f
,0xf8,0x00,0x0f,0xff,0xf0,0x00,0x1f
,0xf8,0x00,0x0f,0xff,0xf0,0x00,0x1f
,0xf8,0x00,0x0f,0xff,0xf0,0x00,0x1f
,0x78,0x00,0x07,0xff,0xe0,0x00,0x1e
,0x7c,0x00,0x07,0xff,0xe0,0x00,0x3e
,0x7c,0x00,0x03,0xff,0xc0,0x00,0x3e
,0x7c,0x00,0x00,0xff,0x00,0x00,0x3e
,0x3e,0x00,0x00,0x00,0x00,0x00,0x7c
,0x3e,0x00,0x00,0x00,0x00,0x00,0x7c
,0x3f,0x00,0x00,0x00,0x00,0x00,0xfc
,0x1f,0x00,0x00,0x00,0x00,0x00,0xf8
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x0f,0x80,0x00,0x00,0x00,0x01,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xc0
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x01,0xfc,0x00,0x00,0x00,0x3f,0x80
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x0f,0xfe,0x00,0x7f,0xf0,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x00,0x0f,0xff,0xf0,0x00,0x00
,0x00,0x00,0x00,0xff,0x00,0x00,0x00

};

const rmp_u8_t Op_Plus[]=
{
0x00,0x00,0x00,0xff,0x00,0x00,0x00
,0x00,0x00,0x0f,0xff,0xf0,0x00,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x0f,0xff,0x00,0xff,0xf0,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xc0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x1f,0x00,0x00,0x7e,0x00,0x00,0xf8
,0x3f,0x00,0x00,0x7e,0x00,0x00,0xfc
,0x3e,0x00,0x00,0x7e,0x00,0x00,0x7c
,0x3e,0x00,0x00,0x7e,0x00,0x00,0x7c
,0x7c,0x00,0x00,0x7e,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x7e,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x7e,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x7e,0x00,0x00,0x3e
,0xf8,0x00,0x00,0xff,0x00,0x00,0x1f
,0xf8,0x00,0xff,0xff,0xff,0x00,0x1f
,0xf8,0x00,0xff,0xff,0xff,0x00,0x1f
,0xf8,0x00,0xff,0xff,0xff,0x00,0x1f
,0xf8,0x00,0xff,0xff,0xff,0x00,0x1f
,0xf8,0x00,0xff,0xff,0xff,0x00,0x1f
,0xf8,0x00,0xff,0xff,0xff,0x00,0x1f
,0xf8,0x00,0x00,0xff,0x00,0x00,0x1f
,0x7c,0x00,0x00,0x7e,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x7e,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x7e,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x7e,0x00,0x00,0x3e
,0x3e,0x00,0x00,0x7e,0x00,0x00,0x7c
,0x3e,0x00,0x00,0x7e,0x00,0x00,0x7c
,0x3f,0x00,0x00,0x7e,0x00,0x00,0xfc
,0x1f,0x00,0x00,0x7e,0x00,0x00,0xf8
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xc0
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x0f,0xff,0x00,0xff,0xf0,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x00,0x0f,0xff,0xf0,0x00,0x00
,0x00,0x00,0x00,0xff,0x00,0x00,0x00

};

const rmp_u8_t Op_Minus[]=
{
0x00,0x00,0x00,0xff,0x00,0x00,0x00
,0x00,0x00,0x0f,0xff,0xf0,0x00,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x0f,0xff,0x00,0xff,0xf0,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xc0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x1f,0x00,0x00,0x00,0x00,0x00,0xf8
,0x3f,0x00,0x00,0x00,0x00,0x00,0xfc
,0x3e,0x00,0x00,0x00,0x00,0x00,0x7c
,0x3e,0x00,0x00,0x00,0x00,0x00,0x7c
,0x7c,0x00,0x00,0x00,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x00,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x00,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x00,0x00,0x00,0x3e
,0xf8,0x00,0x00,0x00,0x00,0x00,0x1f
,0xf8,0x00,0xff,0xff,0xff,0x00,0x1f
,0xf8,0x00,0xff,0xff,0xff,0x00,0x1f
,0xf8,0x00,0xff,0xff,0xff,0x00,0x1f
,0xf8,0x00,0xff,0xff,0xff,0x00,0x1f
,0xf8,0x00,0xff,0xff,0xff,0x00,0x1f
,0xf8,0x00,0xff,0xff,0xff,0x00,0x1f
,0xf8,0x00,0x00,0x00,0x00,0x00,0x1f
,0x7c,0x00,0x00,0x00,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x00,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x00,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x00,0x00,0x00,0x3e
,0x3e,0x00,0x00,0x00,0x00,0x00,0x7c
,0x3e,0x00,0x00,0x00,0x00,0x00,0x7c
,0x3f,0x00,0x00,0x00,0x00,0x00,0xfc
,0x1f,0x00,0x00,0x00,0x00,0x00,0xf8
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xc0
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x0f,0xff,0x00,0xff,0xf0,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x00,0x0f,0xff,0xf0,0x00,0x00
,0x00,0x00,0x00,0xff,0x00,0x00,0x00

};

const rmp_u8_t Op_Mult[]=
{
0x00,0x00,0x00,0xff,0x00,0x00,0x00
,0x00,0x00,0x0f,0xff,0xf0,0x00,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x0f,0xff,0x00,0xff,0xf0,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xc0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x1f,0x00,0x00,0x00,0x00,0x00,0xf8
,0x3f,0x00,0x00,0x00,0x00,0x00,0xfc
,0x3e,0x00,0x0e,0x00,0x70,0x00,0x7c
,0x3e,0x00,0x1f,0x00,0xf8,0x00,0x7c
,0x7c,0x00,0x3f,0x81,0xfc,0x00,0x3e
,0x7c,0x00,0x3f,0xc3,0xfc,0x00,0x3e
,0x7c,0x00,0x3f,0xe7,0xfc,0x00,0x3e
,0x7c,0x00,0x1f,0xff,0xf8,0x00,0x3e
,0xf8,0x00,0x0f,0xff,0xf0,0x00,0x1f
,0xf8,0x00,0x07,0xff,0xe0,0x00,0x1f
,0xf8,0x00,0x03,0xff,0xc0,0x00,0x1f
,0xf8,0x00,0x01,0xff,0x80,0x00,0x1f
,0xf8,0x00,0x01,0xff,0x80,0x00,0x1f
,0xf8,0x00,0x03,0xff,0xc0,0x00,0x1f
,0xf8,0x00,0x07,0xff,0xe0,0x00,0x1f
,0xf8,0x00,0x0f,0xff,0xf0,0x00,0x1f
,0x7c,0x00,0x1f,0xff,0xf8,0x00,0x3e
,0x7c,0x00,0x3f,0xe7,0xfc,0x00,0x3e
,0x7c,0x00,0x3f,0xc3,0xfc,0x00,0x3e
,0x7c,0x00,0x3f,0x81,0xfc,0x00,0x3e
,0x3e,0x00,0x1f,0x00,0xf8,0x00,0x7c
,0x3e,0x00,0x0e,0x00,0x70,0x00,0x7c
,0x3f,0x00,0x00,0x00,0x00,0x00,0xfc
,0x1f,0x00,0x00,0x00,0x00,0x00,0xf8
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xc0
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x0f,0xff,0x00,0xff,0xf0,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x00,0x0f,0xff,0xf0,0x00,0x00
,0x00,0x00,0x00,0xff,0x00,0x00,0x00

};

const rmp_u8_t Op_Div[]=
{
0x00,0x00,0x00,0xff,0x00,0x00,0x00
,0x00,0x00,0x0f,0xff,0xf0,0x00,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x0f,0xff,0x00,0xff,0xf0,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xc0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x18,0x00,0x03,0xf0
,0x1f,0x80,0x00,0x7e,0x00,0x01,0xf8
,0x1f,0x00,0x00,0x7e,0x00,0x00,0xf8
,0x3f,0x00,0x00,0x7e,0x00,0x00,0xfc
,0x3e,0x00,0x00,0x7e,0x00,0x00,0x7c
,0x3e,0x00,0x00,0x7e,0x00,0x00,0x7c
,0x7c,0x00,0x00,0x18,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x00,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x00,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x00,0x00,0x00,0x3e
,0xf8,0x00,0x00,0x00,0x00,0x00,0x1f
,0xf8,0x00,0x00,0x00,0x00,0x00,0x1f
,0xf8,0x00,0x7f,0xff,0xfe,0x00,0x1f
,0xf8,0x00,0xff,0xff,0xff,0x00,0x1f
,0xf8,0x00,0xff,0xff,0xff,0x00,0x1f
,0xf8,0x00,0x7f,0xff,0xfe,0x00,0x1f
,0xf8,0x00,0x00,0x00,0x00,0x00,0x1f
,0xf8,0x00,0x00,0x00,0x00,0x00,0x1f
,0x7c,0x00,0x00,0x00,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x00,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x00,0x00,0x00,0x3e
,0x7c,0x00,0x00,0x18,0x00,0x00,0x3e
,0x3e,0x00,0x00,0x7e,0x00,0x00,0x7c
,0x3e,0x00,0x00,0x7e,0x00,0x00,0x7c
,0x3f,0x00,0x00,0x7e,0x00,0x00,0xfc
,0x1f,0x00,0x00,0x7e,0x00,0x00,0xf8
,0x1f,0x80,0x00,0x7e,0x00,0x01,0xf8
,0x0f,0xc0,0x00,0x18,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xc0
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x0f,0xff,0x00,0xff,0xf0,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x00,0x0f,0xff,0xf0,0x00,0x00
,0x00,0x00,0x00,0xff,0x00,0x00,0x00

};

const rmp_u8_t Op_Equal[]=
{
0x00,0x00,0x00,0xff,0x00,0x00,0x00
,0x00,0x00,0x0f,0xff,0xf0,0x00,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x0f,0xff,0x00,0xff,0xf0,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xc0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x1f,0x00,0x00,0x00,0x00,0x00,0xf8
,0x3f,0x00,0x00,0x00,0x00,0x00,0xfc
,0x3e,0x00,0x00,0x00,0x00,0x00,0x7c
,0x3e,0x00,0x7f,0xff,0xfe,0x00,0x7c
,0x7c,0x00,0xff,0xff,0xff,0x00,0x3e
,0x7c,0x00,0xff,0xff,0xff,0x00,0x3e
,0x7c,0x00,0xff,0xff,0xff,0x00,0x3e
,0x7c,0x00,0xff,0xff,0xff,0x00,0x3e
,0xf8,0x00,0xff,0xff,0xff,0x00,0x1f
,0xf8,0x00,0xff,0xff,0xff,0x00,0x1f
,0xf8,0x00,0x00,0x00,0x00,0x00,0x1f
,0xf8,0x00,0x00,0x00,0x00,0x00,0x1f
,0xf8,0x00,0x00,0x00,0x00,0x00,0x1f
,0xf8,0x00,0x00,0x00,0x00,0x00,0x1f
,0xf8,0x00,0xff,0xff,0xff,0x00,0x1f
,0xf8,0x00,0xff,0xff,0xff,0x00,0x1f
,0x7c,0x00,0xff,0xff,0xff,0x00,0x3e
,0x7c,0x00,0xff,0xff,0xff,0x00,0x3e
,0x7c,0x00,0xff,0xff,0xff,0x00,0x3e
,0x7c,0x00,0xff,0xff,0xff,0x00,0x3e
,0x3e,0x00,0x7f,0xff,0xfe,0x00,0x7c
,0x3e,0x00,0x00,0x00,0x00,0x00,0x7c
,0x3f,0x00,0x00,0x00,0x00,0x00,0xfc
,0x1f,0x00,0x00,0x00,0x00,0x00,0xf8
,0x1f,0x80,0x00,0x00,0x00,0x01,0xf8
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x0f,0xc0,0x00,0x00,0x00,0x03,0xf0
,0x07,0xe0,0x00,0x00,0x00,0x07,0xe0
,0x03,0xf0,0x00,0x00,0x00,0x0f,0xc0
,0x03,0xf8,0x00,0x00,0x00,0x1f,0xc0
,0x01,0xfe,0x00,0x00,0x00,0x7f,0x80
,0x00,0xff,0x00,0x00,0x00,0xff,0x00
,0x00,0x7f,0xc0,0x00,0x03,0xfe,0x00
,0x00,0x3f,0xf0,0x00,0x0f,0xfc,0x00
,0x00,0x0f,0xff,0x00,0xff,0xf0,0x00
,0x00,0x07,0xff,0xff,0xff,0xe0,0x00
,0x00,0x01,0xff,0xff,0xff,0x80,0x00
,0x00,0x00,0x7f,0xff,0xfe,0x00,0x00
,0x00,0x00,0x0f,0xff,0xf0,0x00,0x00
,0x00,0x00,0x00,0xff,0x00,0x00,0x00

};

const rmp_u8_t Ico_Bat[]=
{
0x00,0x00,0x00
,0x00,0x00,0x00
,0x00,0x00,0x00
,0x00,0x00,0x00
,0x00,0x00,0x00
,0x7f,0xff,0xf8
,0xff,0xff,0xfc
,0xe0,0x00,0x1c
,0xc0,0x00,0x0c
,0xce,0x7b,0xce
,0xce,0x7b,0xcf
,0xce,0x7b,0xcf
,0xce,0x7b,0xcf
,0xce,0x7b,0xcf
,0xce,0x7b,0xce
,0xc0,0x00,0x0c
,0xe0,0x00,0x1c
,0xff,0xff,0xfc
,0x7f,0xff,0xf8
,0x00,0x00,0x00
,0x00,0x00,0x00
,0x00,0x00,0x00
,0x00,0x00,0x00
,0x00,0x00,0x00

};

const rmp_u8_t Ico_Ble[]=
{
0x00,0x18,0x00
,0x00,0x1c,0x00
,0x00,0x1e,0x00
,0x00,0x1f,0x00
,0x00,0x1b,0x80
,0x00,0x19,0xc0
,0x07,0x18,0xe0
,0x07,0x99,0xe0
,0x01,0xdb,0x80
,0x00,0xff,0x00
,0x00,0x7e,0x00
,0x00,0x3c,0x00
,0x00,0x3c,0x00
,0x00,0x7e,0x00
,0x00,0xff,0x00
,0x01,0xdb,0x80
,0x07,0x99,0xe0
,0x07,0x18,0xe0
,0x00,0x19,0xc0
,0x00,0x1b,0x80
,0x00,0x1f,0x00
,0x00,0x1e,0x00
,0x00,0x1c,0x00
,0x00,0x18,0x00

};

const rmp_u8_t Ico_Wifi[]=
{
0x00,0x00,0x00
,0x00,0x00,0x00
,0x00,0x00,0x00
,0x01,0xff,0x80
,0x0f,0xff,0xf0
,0x1f,0x81,0xf8
,0x7c,0x00,0x3e
,0xf0,0x00,0x0f
,0xe0,0xfe,0x07
,0x03,0xff,0xc0
,0x07,0xff,0xe0
,0x1f,0x00,0xf0
,0x1c,0x00,0x38
,0x08,0x3c,0x10
,0x00,0xff,0x00
,0x01,0xff,0x80
,0x01,0xc3,0x80
,0x00,0x00,0x00
,0x00,0x00,0x00
,0x00,0x18,0x00
,0x00,0x18,0x00
,0x00,0x00,0x00
,0x00,0x00,0x00
,0x00,0x00,0x00

};

const rmp_u8_t Ico_Note[]=
{
0x00,0x3c,0x00
,0x01,0xff,0x80
,0x07,0x81,0xe0
,0x0e,0x00,0x70
,0x18,0x00,0x18
,0x30,0x00,0x0c
,0x30,0x18,0x0c
,0x60,0x18,0x06
,0x60,0x18,0x06
,0x40,0x18,0x02
,0xc0,0x18,0x03
,0xc0,0x18,0x03
,0xc0,0x18,0x03
,0xc0,0x18,0x03
,0x40,0x00,0x02
,0x60,0x00,0x06
,0x60,0x18,0x06
,0x30,0x18,0x0c
,0x30,0x00,0x0c
,0x18,0x00,0x18
,0x0e,0x00,0x70
,0x07,0x81,0xe0
,0x01,0xff,0x80
,0x00,0x3c,0x00

};

const rmp_u8_t Ico_LTE[]=
{
    0x00,0x00,0x00
,0x00,0x00,0x00
,0x00,0x00,0x00
,0x00,0x00,0x0e
,0x00,0x00,0x1f
,0x00,0x00,0x1f
,0x00,0x00,0x1f
,0x00,0x07,0x9f
,0x00,0x07,0x9f
,0x00,0x07,0x9f
,0x01,0xe7,0x9f
,0x01,0xe7,0x9f
,0x01,0xe7,0x9f
,0xf1,0xe7,0x9f
,0xf9,0xe7,0x9f
,0xf9,0xe7,0x9f
,0xf9,0xe7,0x9f
,0xf9,0xe7,0x9f
,0xf9,0xe7,0x9f
,0xf9,0xe7,0x9f
,0x71,0xc3,0x8e
,0x00,0x00,0x00
,0x00,0x00,0x00
,0x00,0x00,0x00

};

const rmp_u8_t Ico_Mute[]=
{
    0x00,0x7e,0x00
,0x03,0xff,0xc0
,0x07,0x81,0xe0
,0x0e,0x00,0x70
,0x1c,0x00,0x38
,0x38,0x00,0x1c
,0x70,0x00,0x0e
,0x60,0x00,0x06
,0x60,0x10,0x06
,0xc0,0x70,0x03
,0xc1,0xf2,0xc3
,0xc1,0xf3,0x83
,0xc1,0xf3,0x83
,0xc1,0xf2,0xc3
,0xc0,0x70,0x03
,0x60,0x10,0x06
,0x60,0x00,0x06
,0x70,0x00,0x0e
,0x38,0x00,0x1c
,0x1c,0x00,0x38
,0x0e,0x00,0x70
,0x07,0x81,0xe0
,0x03,0xff,0xc0
,0x00,0x7e,0x00

};
const rmp_u8_t Big_Zero[]=
{
0x00,0x00,0x00,0x1f,0xf8,0x00,0x00,0x00
,0x00,0x00,0x01,0xff,0xff,0x80,0x00,0x00
,0x00,0x00,0x07,0xff,0xff,0xe0,0x00,0x00
,0x00,0x00,0x0f,0xff,0xff,0xf0,0x00,0x00
,0x00,0x00,0x1f,0xff,0xff,0xf8,0x00,0x00
,0x00,0x00,0x3f,0xff,0xff,0xfc,0x00,0x00
,0x00,0x00,0x7f,0xff,0xff,0xfe,0x00,0x00
,0x00,0x00,0xff,0xff,0xff,0xff,0x00,0x00
,0x00,0x01,0xff,0xfc,0x3f,0xff,0x00,0x00
,0x00,0x01,0xff,0xe0,0x07,0xff,0x80,0x00
,0x00,0x03,0xff,0xc0,0x03,0xff,0xc0,0x00
,0x00,0x03,0xff,0x80,0x01,0xff,0xc0,0x00
,0x00,0x03,0xff,0x00,0x00,0xff,0xc0,0x00
,0x00,0x07,0xff,0x00,0x00,0xff,0xe0,0x00
,0x00,0x07,0xfe,0x00,0x00,0x7f,0xe0,0x00
,0x00,0x07,0xfe,0x00,0x00,0x7f,0xe0,0x00
,0x00,0x07,0xfe,0x00,0x00,0x7f,0xe0,0x00
,0x00,0x0f,0xfe,0x00,0x00,0x7f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x3f,0xf0,0x00
,0x00,0x0f,0xfc,0x00,0x00,0x7f,0xf0,0x00
,0x00,0x0f,0xfe,0x00,0x00,0x7f,0xf0,0x00
,0x00,0x07,0xfe,0x00,0x00,0x7f,0xe0,0x00
,0x00,0x07,0xfe,0x00,0x00,0x7f,0xe0,0x00
,0x00,0x07,0xfe,0x00,0x00,0x7f,0xe0,0x00
,0x00,0x07,0xff,0x00,0x00,0xff,0xe0,0x00
,0x00,0x03,0xff,0x00,0x00,0xff,0xc0,0x00
,0x00,0x03,0xff,0x80,0x01,0xff,0xc0,0x00
,0x00,0x01,0xff,0xc0,0x03,0xff,0x80,0x00
,0x00,0x01,0xff,0xe0,0x07,0xff,0x80,0x00
,0x00,0x00,0xff,0xfc,0x3f,0xff,0x00,0x00
,0x00,0x00,0xff,0xff,0xff,0xff,0x00,0x00
,0x00,0x00,0x7f,0xff,0xff,0xfe,0x00,0x00
,0x00,0x00,0x3f,0xff,0xff,0xfc,0x00,0x00
,0x00,0x00,0x1f,0xff,0xff,0xf8,0x00,0x00
,0x00,0x00,0x0f,0xff,0xff,0xf0,0x00,0x00
,0x00,0x00,0x03,0xff,0xff,0xc0,0x00,0x00
,0x00,0x00,0x00,0xff,0xff,0x00,0x00,0x00
,0x00,0x00,0x00,0x1f,0xf8,0x00,0x00,0x00
};

/* 480*272 screen - Y 480 X 272 */
volatile rmp_u16_t Screen[272*480];

void Capture(void)
{
    int i,j;
    for(i=0;i<272;i++)
        for(j=0;j<480;j++)
            Screen[i*480+j]=LTDC_Read_Point(i,j);
}

void Func_1(void)
{
    rmp_cnt_t State;
    SDRAM_Init();
    LCD_Init();

    LCD_Clear(RMP_CTL_GREY);
    MPU_Init();
    
    /* Draw line */
    RMP_Line(10,10,90,90,RED);
    RMP_Line(10,90,90,10,BLUE);
    RMP_Line(10,90,90,90,RED);
    RMP_Line(90,90,90,10,GREEN);
    RMP_Dot_Line(10,10,90,50,BLUE,RMP_TRANS);
    RMP_Dot_Line(50,90,10,10,RED,RMP_TRANS);
    
    /* Draw Rectangle */
    RMP_Rectangle(110, 10, 90, 30, GREEN, RED);
    RMP_Rectangle(110, 50, 30, 40, RED, GREEN);
    
    /* Draw circle */
    RMP_Circle(170, 70, 20, GREEN, RED);
    
    /* Draw controls */
    RMP_Checkbox(10, 110, 90, RMP_CBOX_CHECK);
    RMP_Radiobtn(110, 110, 90, RMP_RBTN_SEL);
    RMP_Cmdbtn(10, 210, 90, 90, RMP_CBTN_DOWN);
    RMP_Lineedit(110, 210, 90, 90);
    
    RMP_Progbar(10, 310, 150, 30, RMP_PBAR_L2R, 10, BLUE, WHITE);
    RMP_Progbar(170, 310, 30, 110, RMP_PBAR_U2D, 10, BLUE, WHITE);
    RMP_Progbar(50, 430, 150, 30, RMP_PBAR_R2L, 10, BLUE, WHITE);
    RMP_Progbar(10, 350, 30, 110, RMP_PBAR_D2U, 10, BLUE, WHITE);
    
    RMP_Cursor(230,20-8,RMP_CUR_NORM);
    RMP_Cursor(230,60-8,RMP_CUR_BUSY);
    RMP_Cursor(230,100-8,RMP_CUR_QUESTION);
    RMP_Cursor(230,140-8,RMP_CUR_HAND);
    RMP_Cursor(230,180-8,RMP_CUR_TEXT);
    RMP_Cursor(230,220-8,RMP_CUR_STOP);
    RMP_Cursor(230,260-8,RMP_CUR_MOVE);
    RMP_Cursor(230,300-8,RMP_CUR_LR);
    RMP_Cursor(230,340-8,RMP_CUR_UD);
    RMP_Cursor(230,380-8,RMP_CUR_ULBR);
    RMP_Cursor(230,420-8,RMP_CUR_URBL);
    RMP_Cursor(230,460-8,RMP_CUR_CROSS);
    
    State=0;
    while(State<=20)
    {
        State++;
        RMP_Thd_Delay(10000);
        
        Capture();
        
        if(State%2==0)
        {
            RMP_Checkbox_Set(10, 110, 90);
            RMP_Radiobtn_Set(110, 110, 90);
            RMP_Cmdbtn_Up(10, 210, 90, 90);
        }
        else
        {
            RMP_Checkbox_Clr(10, 110, 90);
            RMP_Radiobtn_Clr(110, 110, 90);
            RMP_Cmdbtn_Down(10, 210, 90, 90);
        }
        
        RMP_Progbar_Set(10, 310, 150, 30, RMP_PBAR_L2R, (State*10)%110, (State*10+10)%110, BLUE, WHITE);
        RMP_Progbar_Set(170, 310, 30, 110, RMP_PBAR_U2D, (State*10)%110, (State*10+10)%110, BLUE, WHITE);
        RMP_Progbar_Set(50, 430, 150, 30, RMP_PBAR_R2L, (State*10)%110, (State*10+10)%110, BLUE, WHITE);
        RMP_Progbar_Set(10, 350, 30, 110, RMP_PBAR_D2U, (State*10)%110, (State*10+10)%110, BLUE, WHITE);
    }

    LCD_Clear(KEYS_BG);
    RMP_Round_Rect(12, YPOS_DISP, 272-24, 56*3, 20, DISP_BG);
    
    RMP_Matrix_AA(12, 6, Ico_LTE, RMP_MAT_BIG, 24, 24, WHITE, KEYS_BG);
    RMP_Matrix_AA(12+24+8, 6, Ico_Wifi, RMP_MAT_BIG, 24, 24, WHITE, KEYS_BG);
    RMP_Matrix_AA(12+24+8+24+8, 6, Ico_Ble, RMP_MAT_BIG, 24, 24, WHITE, KEYS_BG);
    RMP_Matrix_AA(272-12-24, 6, Ico_Bat, RMP_MAT_BIG, 24, 24, WHITE, KEYS_BG);
    RMP_Matrix_AA(272-12-24-12-24, 6, Ico_Mute, RMP_MAT_BIG, 24, 24, WHITE, KEYS_BG);
    RMP_Matrix_AA(272-12-24-12-24-12-24, 6, Ico_Note, RMP_MAT_BIG, 24, 24, WHITE, KEYS_BG);
    
    RMP_Matrix_AA(272-12-6-64, 56*3-24-12, Big_Zero, RMP_MAT_BIG, 64, 64, NUM_FR, DISP_BG);
    
    RMP_Matrix_AA(XPOS_0, YPOS_0, Num_7, RMP_MAT_BIG, 56, 56, NUM_FR, KEYS_BG);
    RMP_Matrix_AA(XPOS_1, YPOS_0, Num_8, RMP_MAT_BIG, 56, 56, NUM_FR, KEYS_BG);
    RMP_Matrix_AA(XPOS_2, YPOS_0, Num_9, RMP_MAT_BIG, 56, 56, NUM_FR, KEYS_BG);
    RMP_Matrix_AA(XPOS_3, YPOS_0, Op_Div, RMP_MAT_BIG, 56, 56, OP_FR, KEYS_BG);

    RMP_Matrix_AA(XPOS_0, YPOS_1, Num_4, RMP_MAT_BIG, 56, 56, NUM_FR, KEYS_BG);
    RMP_Matrix_AA(XPOS_1, YPOS_1, Num_5, RMP_MAT_BIG, 56, 56, NUM_FR, KEYS_BG);
    RMP_Matrix_AA(XPOS_2, YPOS_1, Num_6, RMP_MAT_BIG, 56, 56, NUM_FR, KEYS_BG);
    RMP_Matrix_AA(XPOS_3, YPOS_1, Op_Mult, RMP_MAT_BIG, 56, 56, OP_FR, KEYS_BG);
    
    RMP_Matrix_AA(XPOS_0, YPOS_2, Num_1, RMP_MAT_BIG, 56, 56, NUM_FR, KEYS_BG);
    RMP_Matrix_AA(XPOS_1, YPOS_2, Num_2, RMP_MAT_BIG, 56, 56, NUM_FR, KEYS_BG);
    RMP_Matrix_AA(XPOS_2, YPOS_2, Num_3, RMP_MAT_BIG, 56, 56, NUM_FR, KEYS_BG);
    RMP_Matrix_AA(XPOS_3, YPOS_2, Op_Minus, RMP_MAT_BIG, 56, 56, OP_FR, KEYS_BG);

    RMP_Matrix_AA(XPOS_0, YPOS_3, Num_0, RMP_MAT_BIG, 56, 56, NUM_FR, KEYS_BG);
    RMP_Matrix_AA(XPOS_1, YPOS_3, Num_Dot, RMP_MAT_BIG, 56, 56, NUM_FR, KEYS_BG);
    RMP_Matrix_AA(XPOS_2, YPOS_3, Op_Equal, RMP_MAT_BIG, 56, 56, OP_FR, KEYS_BG);
    RMP_Matrix_AA(XPOS_3, YPOS_3, Op_Plus, RMP_MAT_BIG, 56, 56, OP_FR, KEYS_BG);
    
    Capture();
    while(1);
}

void Func_2(void)
{
    while(1);
}

void RMP_Init_Hook(void)
{
    /* Clean up the structures */
    RMP_Clear(&Thd_1,sizeof(struct RMP_Thd));
    RMP_Clear(&Thd_2,sizeof(struct RMP_Thd));
    /* Start threads */
    RMP_Thd_Crt(&Thd_1, Func_1, &Stack_1[200], (void*)0x1234, 1, 5);
    RMP_Thd_Crt(&Thd_2, Func_2, &Stack_2[200], (void*)0x4321, 1, 3);
}

void RMP_Init_Idle(void)
{
    return;
}

